﻿using System;

namespace IOA.MES.Client.Models
{
    /// <summary>
    /// 绝缘耐压数据
    /// </summary>
    public class InsulateData
    {
        private string _barCode = string.Empty;
        private string _position = string.Empty;
        private string _process = string.Empty;
        private string _testDuring = string.Empty;
        private string _param1 = string.Empty;
        private string _param1Setting1 = string.Empty;
        private string _param1Test1 = string.Empty;
        private string _param1Test2 = string.Empty;
        private string _param1Test2Max = string.Empty;
        private string _param1Test2Min = string.Empty;
        private string _param1Result = string.Empty;
        private string _param2 = string.Empty;
        private string _param2Setting1 = string.Empty;
        private string _param2Test1 = string.Empty;
        private string _param2Test2 = string.Empty;
        private string _param2Test2Max = string.Empty;
        private string _param2Test2Min = string.Empty;
        private string _param2Result = string.Empty;
        private string _param3 = string.Empty;
        private string _param3Setting1 = string.Empty;
        private string _param3Test1 = string.Empty;
        private string _param3Test2 = string.Empty;
        private string _param3Test2Max = string.Empty;
        private string _param3Test2Min = string.Empty;
        private string _param3Result = string.Empty;
        private string _param4 = string.Empty;
        private string _param4Setting1 = string.Empty;
        private string _param4Test1 = string.Empty;
        private string _param4Test2 = string.Empty;
        private string _param4Test2Max = string.Empty;
        private string _param4Test2Min = string.Empty;
        private string _param4Result = string.Empty;
        private string _result = string.Empty;

        #region Public Property

        ///<Summary>
        /// BarCode
        ///</Summary>
        public string BarCode
        {
            get { return string.IsNullOrWhiteSpace(_barCode) ? string.Empty : _barCode; }
            set { _barCode = value; }
        }

        ///<Summary>
        /// 工位
        ///</Summary>
        public string Position
        {
            get { return string.IsNullOrWhiteSpace(_position) ? string.Empty : _position; }
            set { _position = value; }
        }

        ///<Summary>
        /// 工序
        ///</Summary>
        public string Process
        {
            get { return string.IsNullOrWhiteSpace(_process) ? string.Empty : _process; }
            set { _process = value; }
        }

        ///<Summary>
        /// 开始时间
        ///</Summary>
        public string StartTime { get; set; }

        ///<Summary>
        /// 结束时间
        ///</Summary>
        public string EndTime { get; set; }

        ///<Summary>
        /// 测试用时
        ///</Summary>
        public string TestDuring
        {
            get { return string.IsNullOrWhiteSpace(_testDuring) ? string.Empty : _testDuring; }
            set { _testDuring = value; }
        }

        ///<Summary>
        /// 参数1
        ///</Summary>
        public string Param1
        {
            get { return string.IsNullOrWhiteSpace(_param1) ? string.Empty : _param1; }
            set { _param1 = value; }
        }

        ///<Summary>
        /// 参数1设置1
        ///</Summary>
        public string Param1Setting1
        {
            get { return string.IsNullOrWhiteSpace(_param1Setting1) ? string.Empty : _param1Setting1; }
            set { _param1Setting1 = value; }
        }

        ///<Summary>
        /// 参数1测试1
        ///</Summary>
        public string Param1Test1
        {
            get { return string.IsNullOrWhiteSpace(_param1Test1) ? string.Empty : _param1Test1; }
            set { _param1Test1 = value; }
        }

        ///<Summary>
        /// 参数1测试2
        ///</Summary>
        public string Param1Test2
        {
            get { return string.IsNullOrWhiteSpace(_param1Test2) ? string.Empty : _param1Test2; }
            set { _param1Test2 = value; }
        }

        ///<Summary>
        /// 参数1测试2上限
        ///</Summary>
        public string Param1Test2Max
        {
            get { return string.IsNullOrWhiteSpace(_param1Test2Max) ? string.Empty : _param1Test2Max; }
            set { _param1Test2Max = value; }
        }

        ///<Summary>
        /// 参数1测试2下限
        ///</Summary>
        public string Param1Test2Min
        {
            get { return string.IsNullOrWhiteSpace(_param1Test2Min) ? string.Empty : _param1Test2Min; }
            set { _param1Test2Min = value; }
        }

        ///<Summary>
        /// 参数1结果
        ///</Summary>
        public string Param1Result
        {
            get { return string.IsNullOrWhiteSpace(_param1Result) ? string.Empty : _param1Result; }
            set { _param1Result = value; }
        }

        ///<Summary>
        /// 参数2
        ///</Summary>
        public string Param2
        {
            get { return string.IsNullOrWhiteSpace(_param2) ? string.Empty : _param2; }
            set { _param2 = value; }
        }

        ///<Summary>
        /// 参数2设置2
        ///</Summary>
        public string Param2Setting1
        {
            get { return string.IsNullOrWhiteSpace(_param2Setting1) ? string.Empty : _param2Setting1; }
            set { _param2Setting1 = value; }
        }

        ///<Summary>
        /// 参数2测试1
        ///</Summary>
        public string Param2Test1
        {
            get { return string.IsNullOrWhiteSpace(_param2Test1) ? string.Empty : _param2Test1; }
            set { _param2Test1 = value; }
        }

        ///<Summary>
        /// 参数2测试2
        ///</Summary>
        public string Param2Test2
        {
            get { return string.IsNullOrWhiteSpace(_param2Test2) ? string.Empty : _param2Test2; }
            set { _param2Test2 = value; }
        }

        ///<Summary>
        /// 参数2测试2上限
        ///</Summary>
        public string Param2Test2Max
        {
            get { return string.IsNullOrWhiteSpace(_param2Test2Max) ? string.Empty : _param2Test2Max; }
            set { _param2Test2Max = value; }
        }

        ///<Summary>
        /// 参数2测试2下限
        ///</Summary>
        public string Param2Test2Min
        {
            get { return string.IsNullOrWhiteSpace(_param2Test2Min) ? string.Empty : _param2Test2Min; }
            set { _param2Test2Min = value; }
        }

        ///<Summary>
        /// 参数2测试2结果
        ///</Summary>
        public string Param2Result
        {
            get { return string.IsNullOrWhiteSpace(_param2Result) ? string.Empty : _param2Result; }
            set { _param2Result = value; }
        }

        ///<Summary>
        /// 参数3
        ///</Summary>
        public string Param3
        {
            get { return string.IsNullOrWhiteSpace(_param3) ? string.Empty : _param3; }
            set { _param3 = value; }
        }

        ///<Summary>
        /// 参数3设置1
        ///</Summary>
        public string Param3Setting1
        {
            get { return string.IsNullOrWhiteSpace(_param3Setting1) ? string.Empty : _param3Setting1; }
            set { _param3Setting1 = value; }
        }

        ///<Summary>
        /// 参数3测试1
        ///</Summary>
        public string Param3Test1
        {
            get { return string.IsNullOrWhiteSpace(_param3Test1) ? string.Empty : _param3Test1; }
            set { _param3Test1 = value; }
        }

        ///<Summary>
        /// 参数3测试2
        ///</Summary>
        public string Param3Test2
        {
            get { return string.IsNullOrWhiteSpace(_param3Test2) ? string.Empty : _param3Test2; }
            set { _param3Test2 = value; }
        }

        ///<Summary>
        /// 参数3测试2上限
        ///</Summary>
        public string Param3Test2Max
        {
            get { return string.IsNullOrWhiteSpace(_param3Test2Max) ? string.Empty : _param3Test2Max; }
            set { _param3Test2Max = value; }
        }

        ///<Summary>
        /// 参数3测试2下限
        ///</Summary>
        public string Param3Test2Min
        {
            get { return string.IsNullOrWhiteSpace(_param3Test2Min) ? string.Empty : _param3Test2Min; }
            set { _param3Test2Min = value; }
        }

        ///<Summary>
        /// 参数3测试2结果
        ///</Summary>
        public string Param3Result
        {
            get { return string.IsNullOrWhiteSpace(_param3Result) ? string.Empty : _param3Result; }
            set { _param3Result = value; }
        }

        ///<Summary>
        /// 参数4
        ///</Summary>
        public string Param4
        {
            get { return string.IsNullOrWhiteSpace(_param4) ? string.Empty : _param4; }
            set { _param4 = value; }
        }

        ///<Summary>
        /// 参数4设置1
        ///</Summary>
        public string Param4Setting1
        {
            get { return string.IsNullOrWhiteSpace(_param4Setting1) ? string.Empty : _param4Setting1; }
            set { _param4Setting1 = value; }
        }

        ///<Summary>
        /// 参数4测试1
        ///</Summary>
        public string Param4Test1
        {
            get { return string.IsNullOrWhiteSpace(_param4Test1) ? string.Empty : _param4Test1; }
            set { _param4Test1 = value; }
        }

        ///<Summary>
        /// 参数4测试2
        ///</Summary>
        public string Param4Test2
        {
            get { return string.IsNullOrWhiteSpace(_param4Test2) ? string.Empty : _param4Test2; }
            set { _param4Test2 = value; }
        }

        ///<Summary>
        /// 参数4测试2上限
        ///</Summary>
        public string Param4Test2Max
        {
            get { return string.IsNullOrWhiteSpace(_param4Test2Max) ? string.Empty : _param4Test2Max; }
            set { _param4Test2Max = value; }
        }

        ///<Summary>
        /// 参数4测试2下限
        ///</Summary>
        public string Param4Test2Min
        {
            get { return string.IsNullOrWhiteSpace(_param4Test2Min) ? string.Empty : _param4Test2Min; }
            set { _param4Test2Min = value; }
        }

        ///<Summary>
        /// 参数4测试2结果
        ///</Summary>
        public string Param4Result
        {
            get { return string.IsNullOrWhiteSpace(_param4Result) ? string.Empty : _param4Result; }
            set { _param4Result = value; }
        }

        ///<Summary>
        /// 判定
        ///</Summary>
        public string Result
        {
            get { return string.IsNullOrWhiteSpace(_result) ? string.Empty : _result; }
            set { _result = value; }
        }
        #endregion
    }
}
